import CommonApi from '@/api/CommonApi';

class Resource extends CommonApi{
	
	constructor(path) {
	    super(path);
		this.path = path;
	}
	
	// 根据code查询，支持多个code一次查询，多个用，隔开
	getByCode(code) {
		return CommonApi.request({
			url: this.path + '/get/'+code,
			method: 'GET',
		})
	}
	
}

export default Resource;

